package com.hiv.mapper.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

import lombok.NoArgsConstructor;

/**
 * 医院对象 hospital
 * 
 * @author zhanghong
 * @date 2022-09-18
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("医院/检验所")
public class Hospital implements Serializable {
    private Long id;
    @ApiModelProperty("质控中心/医院/检验所名称")
    private String name;
    @ApiModelProperty("医院地址")
    private String address;
    @ApiModelProperty("类型 1质控中心 2医院 3检验所")
    private Integer type;
    @ApiModelProperty("上级质控中心id")
    private Long parentId;
    @ApiModelProperty("层级")
    private Integer level;
    @ApiModelProperty("状态 0禁用 1启用")
    private Integer status;
    @ApiModelProperty("删除状态 0未删除 1已删除")
    private Integer deleted;
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    @ApiModelProperty("更新时间")
    private Date updateTime;
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("+下级质控中心列表")
    private List<Hospital> children;
    @ApiModelProperty("上级质控中心名称")
    private String parentName;
}
